using UnityEngine;
using System.Collections;

public class Projetil_Comportamento : MonoBehaviour {

	public float Velocity;
	
	void Awake () 
	{
		
	}
	
	
	void Update () 
	{
	
		transform.Translate(new Vector3(Velocity, 0, 0)*Time.deltaTime);
		
	}
	void OnTriggerEnter(Collider collider)
	{
		if(collider.tag.Equals("Enemy"))
		{
			Destroy(collider.gameObject);
		}
		Destroy(gameObject);
	}
}
